package com.ykh.mybbsdemo.dao.pojo.vo;

//错误码统一处理
public enum  ErrorCode {

    PARAMS_ERROR(10001,"参数有误"),
    ACCOUNT_PWD_NOT_EXIST(10002,"用户名或密码不存在"),
    ACCOUNT_EXIST(10004,"账号已存在"),
    TOKEN_ERROR(10003,"token不合法"),
    NO_PERMISSION(70001,"无访问权限"),
    SESSION_TIME_OUT(90001,"会话超时"),
    NO_LOGIN(90002,"未登录"),

    VIDEO_UPLOAD_FAIL(20001, "视频文件不存在"),
    NO_EXIST_VIDEO(20002,"视频不存在" ),
    VIDEO_IMG_UPLOAD_FAIL(20003, "视频图片文件上传失败"),
    VIDEO_DELETE_FAIL(20004, "视频文件删除失败");

    private int code;
    private String msg;

    ErrorCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}